package com.ruoyi.gp.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问题选项业务对象 options
 *
 * @author ruoyi
 * @date 2024-03-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OptionsBo extends BaseEntity {

    /**
     * 选项id
     */
    @NotNull(message = "选项id不能为空", groups = { EditGroup.class })
    private Long optionId;

    /**
     * 问题id
     */
    @NotNull(message = "问题id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionId;

    /**
     * 问题内容
     */
    @NotBlank(message = "问题内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;


}
